﻿
Partial Class Admin_ClientsForm
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            ' If editing
            If Not Request.QueryString("entreprise_id") Is Nothing Then
                Me.FormViewEntreprise.ChangeMode(FormViewMode.Edit)
            End If
        End If
    End Sub

    Protected Sub FormViewEntreprise_ItemDeleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewDeletedEventArgs) Handles FormViewEntreprise.ItemDeleted
        Response.Redirect("Clients.aspx")
    End Sub


    Protected Sub FormViewEntreprise_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormViewEntreprise.ItemInserted
        Response.Redirect("Clients.aspx")
    End Sub

    Protected Sub FormViewEntreprise_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormViewEntreprise.ItemUpdated
        Response.Redirect("Clients.aspx")
    End Sub

End Class
